<template>
  <div>
    <div>id:{{ params.id }}</div>
    <div>标题:{{ params.title }}</div>
    <div>内容:{{ params.content }}</div>
    <div>id:{{ id }}</div>
    <div>标题:{{ title }}</div>
    <div>内容:{{ content }}</div>
  </div>
</template>
<script setup lang="ts">
import { toRefs } from 'vue'
import { useRoute } from 'vue-router'

const route = useRoute()
const { params } = toRefs(route)
console.log(route)

defineProps(['id', 'title', 'content'])
</script>
<style></style>
